package com.sailmi.system.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SmsConfig {
	@Value("${ucs.sms.url:}")
	private  String smsUrl;

	@Value("${ucs.sms.appKey:}")
	private  String smsAppKey;

	@Value("${ucs.sms.appSecret:}")
	private  String smsAppSecrect;

	@Value("${ucs.sms.sender:}")
	private  String smsSender;

	@Value("${ucs.sms.templateId:}")
	private  String smsTemplateId;

	@Value("${ucs.sms.signature:}")
	private  String smsSignature;

	@Value("${ucs.sms.receiver:}")
	private  String smsReceiver;

	@Value("${ucs.sms.statusCallBack:}")
	private  String smsStatusCallBack;
	//无需修改,用于格式化鉴权头域,给"X-WSSE"参数赋值
	public  final static String WSSE_HEADER_FORMAT = "UsernameToken Username=\"%s\",PasswordDigest=\"%s\",Nonce=\"%s\",Created=\"%s\"";
	//无需修改,用于格式化鉴权头域,给"Authorization"参数赋值
	public final static String AUTH_HEADER_VALUE = "WSSE realm=\"SDP\",profile=\"UsernameToken\",type=\"Appkey\"";

	public String getSmsUrl() {
		return smsUrl;
	}

	public void setSmsUrl(String smsUrl) {
		this.smsUrl = smsUrl;
	}

	public String getSmsAppKey() {
		return smsAppKey;
	}

	public void setSmsAppKey(String smsAppKey) {
		this.smsAppKey = smsAppKey;
	}

	public String getSmsAppSecrect() {
		return smsAppSecrect;
	}

	public void setSmsAppSecrect(String smsAppSecrect) {
		this.smsAppSecrect = smsAppSecrect;
	}

	public String getSmsSender() {
		return smsSender;
	}

	public void setSmsSender(String smsSender) {
		this.smsSender = smsSender;
	}

	public String getSmsTemplateId() {
		return smsTemplateId;
	}

	public void setSmsTemplateId(String smsTemplateId) {
		this.smsTemplateId = smsTemplateId;
	}

	public String getSmsSignature() {
		return smsSignature;
	}

	public void setSmsSignature(String smsSignature) {
		this.smsSignature = smsSignature;
	}

	public String getSmsReceiver() {
		return smsReceiver;
	}

	public void setSmsReceiver(String smsReceiver) {
		this.smsReceiver = smsReceiver;
	}

	public String getSmsStatusCallBack() {
		return smsStatusCallBack;
	}

	public void setSmsStatusCallBack(String smsStatusCallBack) {
		this.smsStatusCallBack = smsStatusCallBack;
	}

	public String getAUTH_HEADER_VALUE() {
		return AUTH_HEADER_VALUE;
	}
}
